import request from '@/utils/request'

// 查询任务关联供应商列表
export function listTaskRelation(query) {
  return request({
    url: '/tender/taskRelation/list',
    method: 'get',
    params: query
  })
}

// 查询任务关联供应商详细
export function getTaskRelation(id) {
  return request({
    url: '/tender/taskRelation/' + id,
    method: 'get'
  })
}

// 新增任务关联供应商
export function addTaskRelation(data) {
  return request({
    url: '/tender/taskRelation',
    method: 'post',
    data: data
  })
}

// 修改任务关联供应商
export function updateTaskRelation(data) {
  return request({
    url: '/tender/taskRelation',
    method: 'put',
    data: data
  })
}

// 删除任务关联供应商
export function delTaskRelation(id) {
  return request({
    url: '/tender/taskRelation/' + id,
    method: 'delete'
  })
}

// 导出任务关联供应商
export function exportTaskRelation(query) {
  return request({
    url: '/tender/taskRelation/export',
    method: 'get',
    params: query
  })
}